package dataSet;

import java.util.*;

public class Membership {
	private Nop nop;
	private Nop center;
	private Double membershipValue;

	public Nop getNop() {
		if (this.nop == null)
			return null;
		else
			return nop;
	}

	public void setNop(Nop nop) {
		this.nop = nop;
	}

	public Nop getCenter() {
		if (this.center == null)
			return null;
		else
			return center;
	}

	public void setCenter(Nop center) {
		this.center = center;
	}

	public Double getMembershipValue() {
		if (this.membershipValue == null)
			return 0.0;
		else
			return membershipValue;
	}

	public void setMembershipValue(Double membershipValue) {
		this.membershipValue = membershipValue;
	}

	public double sub(Membership ms){
		return this.getMembershipValue() - ms.getMembershipValue();
	}
}
